<template>
  <div id="app">
    <!-- <loginView></loginView> -->
    <mainView></mainView>
    <!-- <FarmViwe></FarmViwe> -->
    <!-- <Table></Table> -->
    <!-- <histryView></histryView> -->
    <!-- <router-link to="/history">查看历史数据</router-link>
    <router-view></router-view> -->
    <!-- <echart></echart> -->
    <KeepAlive>
    <router-view></router-view>
    </KeepAlive>
    
  </div>
 
</template>

<script>


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import loginView from './components/loginView.vue';
import mainView from './components/mainView.vue';
import router from './router'






export default {
  name: 'App',

  components: {
    mainView,
    loginView
    
 

  },
 
  }
    


</script>  

 <style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>


